package com.ywqf_api.dao;

import com.ywqf_api.dto.in.HouseKeepDto;
import com.ywqf_api.entity.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/4/8 0008.
 */
public interface HouseKeepDao {

    List<Commodity> findHouseKeep(@Param("communityId")Integer communityId,@Param("type")Integer type);

    Integer findCount(@Param("goodsId")Integer goodsId);

    Commodity findHouseKeepData(@Param("goodsId")Integer goodsId);

    List<Commodity> findShowUrl(@Param("goodsId")Integer goodsId);

    List<Commodity> findDetUrl(@Param("goodsId")Integer goodsId);

    int saveOrder(HouseKeepDto houseKeepDto);

    int saveOrderGoods(@Param("orderId")Integer orderId,@Param("goodsId")Integer goodsId,@Param("money")Double money);

    Commodity findParamValue(@Param("goodsId")Integer goodsId);

    String findOrderNum(@Param("orderId")Integer orderId);

    int saveCard(@Param("orderId")Integer orderId,@Param("orderNum")String orderNum,@Param("value")Integer value,@Param("customerId")Integer customerId);
}
